package cn.topcodes.tcsf.admin.domain.entity;

import cn.topcodes.tcsf.admin.commons.domain.IdEntity;
import cn.topcodes.tcsf.admin.commons.generic.OperateLogConfig;
import lombok.Data;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.Table;

/**
 * 系统部门
 * @author unicorn
 */
@Data
@ToString(callSuper = true)
@OperateLogConfig(name = "系统部门")
@Table(name = "t_sys_dept")
public class SysDept extends IdEntity {

    private static final long serialVersionUID = 1L;

    /*部门名称*/
    private String name;

    /*描述*/
    private String description;

    /*父级部门Id*/
    @Column(name = "parent_id")
    private Long parentId;

    /*排序*/
    private Integer sort;

}